<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:include="base/head::head"/>
<!--业务表单基础信息-->
<body>
<div id="table-tool">
    <a id="btn-add" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="onAdd()">新增</a>
    <a id="btn-edit" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="onEdit()">编辑</a>
    <a id="btn-remove" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="onRemove()">删除</a>
    <a id="btn-refresh" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-refresh',plain:true" onclick="onRefresh()">刷新</a>
</div>
<table id="table" class="easyui-datagrid" data-options="url:'page',pagination:true,pageSize:30,pageList:[20,30,40,50],fit:true,method:'get',fit:true,method:'get',idField:'id',rownumbers:true,singleSelect:true,toolbar:'#table-tool'">
    <thead>
    <tr>
        <th data-options="field:'id',width:80,align:'center',checkbox:true">序号</th>
        <th data-options="field:'tableName',align:'center',width:150">表名称</th>
        <th data-options="field:'formName',width:120,align:'center'">业务标识</th>
        <th data-options="field:'formId',width:120,align:'center'">业务id</th>
        <th data-options="field:'fileName',width:80,align:'center'">文件名</th>
        <th data-options="field:'extName',width:120,align:'center'">扩展名</th>
        <th data-options="field:'fileSize',width:120,align:'center'">文件大小</th>
        <th data-options="field:'createUserName',align:'center',width:100">添加人</th>
        <th data-options="field:'createTime',align:'center',width:150">添加时间</th>
    </tr>
    </thead>
</table>

<div id="dialog-tool">
    <a id="dialog-ok" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'">保存</a>
    <a id="dialog-close" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-close'" onclick="javascript:$('#dialog').dialog('close')">关闭</a>
</div>
<div id="dialog" class="easyui-dialog uq_dialog" data-options="title:'上传文件',modal:true,closed:true,buttons:'#dialog-tool'">
    <form method="post" action="upload" enctype="multipart/form-data">
        <div>
            <input name="file" class="easyui-filebox" style="width: 200px"/>
        </div>
        <div>
            <input name="file" class="easyui-filebox" style="width: 200px"/>
        </div>
        <div>
            <input type="text" name="attrs" style="width: 200px"/>
        </div>
        <input type="submit" value="submit"/>
    </form>
</div>

<script type="text/javascript" th:src="@{/utils/Form.js}"></script>
<script type="text/javascript">

    function onOpenDialog() {
        $("#dialog").dialog("open")
    }

    function onAdd() {
        onOpenDialog();
    }

    function onEdit() {

    }

    function onRemove() {

    }

    function onRefresh() {

    }
</script>
</body>
</html>